home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / xnot12a.zip / NOTALARM.C < prev    next >
C/C++ Source or Header  |  1993-05-20  |  446b  |  19 lines

  1. #include "jam.h"
  2.  
  3. int PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
  4. HANDLE hInstance;                 /* current instance         */
  5. HANDLE hPrevInstance;                 /* previous instance         */
  6. LPSTR lpCmdLine;                 
  7. int nCmdShow;
  8. {
  9.   char name[256];
  10.  
  11.   if (*lpCmdLine)
  12.     {
  13.       MessageBeep((UINT)-1);
  14.       strcpy(name, AppName);
  15.       strcat(name, " Alarm");
  16.       MessageBox(0, lpCmdLine, name, MB_OK | MB_ICONSTOP);
  17.     }
  18.   return(1);
  19. }